import request from '@/utils/request'

// 查询工器具遗失报废行列表
export function listLine(query) {
  return request({
    url: '/mes/tm/scrapline/list',
    method: 'get',
    params: query
  })
}

// 查询工器具遗失报废行详细
export function getLine(lineId) {
  return request({
    url: '/mes/tm/scrapline/' + lineId,
    method: 'get'
  })
}

// 新增工器具遗失报废行
export function addLine(data) {
  return request({
    url: '/mes/tm/scrapline',
    method: 'post',
    data: data
  })
}

// 修改工器具遗失报废行
export function updateLine(data) {
  return request({
    url: '/mes/tm/scrapline',
    method: 'put',
    data: data
  })
}

// 删除工器具遗失报废行
export function delLine(lineId) {
  return request({
    url: '/mes/tm/scrapline/' + lineId,
    method: 'delete'
  })
}
